#define  _CRT_SECURE_NO_WARNINGS 1
#include "SList.h"

void TestSList()
{
	SLTNode* plist = NULL;
	SLTPushFront(&plist,4);
	SLTPushFront(&plist,3);
	SLTPushFront(&plist,2);
	SLTPushFront(&plist,1);
	SLTPrint(plist);

	SLTNode* key = SLTFind(plist, 3);

	SLTInsertAfter(plist->next->next,5);
	SLTPrint(plist);
	SLTEraseAfter(plist->next->next);
	SLTPrint(plist);

	SLTDestroy(plist);
}

int main()
{
	TestSList();
	
	return 0;
}